<template>
  <iframe :src="url" style="border: none;height: 100%;width: 100%;position: relative;overflow: auto"></iframe>
</template>
<script>
export default {
  name: 'IFrame',
  props: {
    path: {
      default: ''
    }
  },
  data() {
    return {
      url: 'about:blank'
    }
  },
  mounted() {
    if (this.path) {
      this.url = this.path;
    }
  },
  watch: {
    $route(rt) {
    }
  },
  methods: {
    setUrl(rt) {
      console.log(rt)
    }
  }
}
</script>
